Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun compareTo(other: TimePeriod<SmallestUnit>): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val firstInstant: Instant
Link copied to clipboard
val lastInstant: Instant
Link copied to clipboard
val range: ClosedRange<Instant>

Retrieve the range of Instants described by this TimePeriod.

Link copied to clipboard
val timeZone: TimeZone

Extensions

Link copied to clipboard

Create a new TimePeriod by moving forward some number of days.

Link copied to clipboard

Create a new TimePeriod by moving forward some number of hours.

Link copied to clipboard

Create a new TimePeriod by moving forward some number of minutes.

Link copied to clipboard

Create a new TimePeriod by moving forward some number of months.

Link copied to clipboard

Create a new TimePeriod by moving forward some number of nanoseconds.

Link copied to clipboard

Create a new TimePeriod by moving forward some number of seconds.

Link copied to clipboard

Create a new TimePeriod by moving forward some number of years.

Link copied to clipboard
fun TimePeriod<*>.after(other: TimePeriod<*>): Boolean
Link copied to clipboard
fun TimePeriod<*>.before(other: TimePeriod<*>): Boolean
Link copied to clipboard
Link copied to clipboard

Construct a new TimePeriod by converting the receiver to a new TimeZone.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun TimePeriod<*>.during(other: TimePeriod<*>): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun <Unit : TimeUnit> TimePeriod<Unit>.minus(difference: TimeDifference<Unit>): TimePeriod<Unit>

Subtracts a TimeDifference from this TimePeriod.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Create a new TimePeriod by moving forward one day.

Link copied to clipboard

Create a new TimePeriod by moving forward one hour.

Link copied to clipboard

Create a new TimePeriod by moving forward one minute.

Link copied to clipboard

Create a new TimePeriod by moving forward one month.

Link copied to clipboard

Create a new TimePeriod by moving forward one nanosecond.

Link copied to clipboard

Create a new TimePeriod by moving forward one second.

Link copied to clipboard

Create a new TimePeriod by moving forward one year.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun <Unit : TimeUnit> TimePeriod<Unit>.plus(difference: TimeDifference<Unit>): TimePeriod<Unit>

Adds a TimeDifference to this TimePeriod.

Link copied to clipboard

Create a new TimePeriod by moving backward one day.

Link copied to clipboard

Create a new TimePeriod by moving backward one hour.

Link copied to clipboard

Create a new TimePeriod by moving backward one minute.

Link copied to clipboard

Create a new TimePeriod by moving backward one month.

Link copied to clipboard

Create a new TimePeriod by moving backward one nanosecond.

Link copied to clipboard

Create a new TimePeriod by moving backward one second.

Link copied to clipboard

Create a new TimePeriod by moving backward one year.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Create a new TimePeriod by moving backward some number of days.

Link copied to clipboard

Create a new TimePeriod by moving backward some number of hours.

Link copied to clipboard

Create a new TimePeriod by moving backward some number of minutes.

Link copied to clipboard

Create a new TimePeriod by moving backward some number of months.

Link copied to clipboard

Create a new TimePeriod by moving backward some number of nanoseconds.

Link copied to clipboard

Create a new TimePeriod by moving backward some number of seconds.

Link copied to clipboard

Create a new TimePeriod by moving backward some number of years.

Link copied to clipboard

Constructs a kotlinx.datetime.LocalDate from a TimePeriod with Day or finer precision.

Link copied to clipboard

Constructs a kotlinx.datetime.LocalDateTime from a TimePeriod with Hour or smaller precision.

Link copied to clipboard